package com.patter.demo.command;

/**
 * @Author create by xcb 2023/1/31 11:01
 */
public class SellStock implements Order {
    private final Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
